package shiyanshi.qiandao.demo.Services.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import shiyanshi.qiandao.demo.Entity.Qiandao_Records;
import shiyanshi.qiandao.demo.Entity.User;
import shiyanshi.qiandao.demo.Mapper.UserMapper;
import shiyanshi.qiandao.demo.Services.UserService;

import java.util.List;

/**
 * @Description:
 * @Author: Z Y F
 * @CreateDate: 2021/6/19 11:06
 **/
@Service
public class UserServiceimpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public boolean regist(String name, String stuid) throws Exception {
        System.out.println(name);
        return  userMapper.regist(name,stuid);
    }

    @Override
    public boolean denglu(String name, String stuid) {
        return userMapper.denglu(name,stuid);
    }

    @Override
    public boolean sign(String stuid) {
       return  userMapper.sign(stuid);
    }

    @Override
    public List<Qiandao_Records> chaxun() throws Exception {
        return userMapper.chaxun();
    }

    public boolean panduan(int qiandao_stuid){
        boolean b= userMapper.panduan(qiandao_stuid);
        return b;
    }

    @Override
    public void endtime(Integer qiandao_stuid) {
        userMapper.endtime(qiandao_stuid);
    }

}
